package com.PAT.practice01;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/11/16/10:49
 * @Description:
 * @Target:给定一句英语，要求你编写程序，将句中所有单词的顺序颠倒输出
 */
public class 说反话 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String ss = scanner.nextLine();

        String[] s = ss.split(" ");

        for (int i = s.length-1; i > 0 ; i--) {
            System.out.print(s[i]+" ");
        }

        System.out.print(s[0]);

    }
}
